package com.rankeiot.core.exception;

/**
 * 业务处理异常，用于中断业务，如：Resp.fail(message)
 */
public class BusinessException extends RuntimeException{
    private int code=100;
    public BusinessException(String message){
       super(message);
    }
    public BusinessException(int code,String message){
        super(message);
        this.code=code;
    }

    public int getCode() {
        return code;
    }
}
